<?php defined( '_VALID_MOS' ) or die( include_once("../../404.php") );
$sql = "SELECT `file_path`, `link` FROM `logo` WHERE `activated` = 1 ORDER BY `order_num` DESC"; 
$cmd = $mysqli->prepare($sql);
$cmd->execute() or die($mysqli->error);
$cmd->bind_result($file_path, $link);
$cmd->store_result();
?>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<div id="box_logoquangcao">
	<div id="sub_box_logoquangcao">
		<div class="bg_tt_right"><div class="bg_tt_left"><div class="bg_tt"><div class="text_tt">
			LOGO QUẢNG CÁO</div></div></div></div>
		<div id="sub_box_logoquangcao1">
			<div class="ct_right">
				<div class="ct_left">
					<div class="ct">
						<ul>
							<?php while($cmd->fetch()){ ?>
								<li><a target="_blank" href="<?php echo $link; ?>"><img src="<?php echo $file_path; ?>"></a></li>
							<?php } ?>
						</ul>
					</div>
				</div>
			</div>
			<div class="bg_bt_right"><div class="bg_bt_left"><div class="bg_bt"><div class="text_bt"></div></div></div></div>
		</div>
	</div>
	<div class="clear"></div>
</div>